if (!isset($idarmure) and isset($_GET['param1']))
{
include("./include/fonction_optimisation.php");
$tempsDepart = getmicrotime();
//initialisation de la page
include("./include/constantes.php");
include("./include/connect.php");
//fin initialisation
}
//on verifie que l'idarmure et l'idchevalier soient passés en parametre
if (isset($_GET['param1']) or isset($idarmure))
{
//si oui on les affecte aux variables et on traite sinon on affiche rien
$idarmure=(isset($_GET['param1'])) ? stripslashes($_GET['param1']) : $idarmure;
$query = "SELECT a.evolution, a.nom, a.matiere, a.article, a.req_fo, a.req_ag, a.req_en, a.req_co, a.req_it, a.req_re, a.req_gloire, a.bon_fo, ";
$query .= "a.bon_ag, a.bon_en, a.bon_co, a.bon_it, a.bon_re, a.usedby, a.type_evo, at.nom AS nomatt, at.multiple1, at.multiple2, ";
$query .= "at.multiple3, at.critique, at.COmin, at.COused, at.prec, at.idtype ";
$query .= "FROM armure a ";
$query .= "RIGHT JOIN attaque at ON a.idarmure = at.idarmure ";
$query .= "WHERE a.idarmure =$idarmure ";
$result = mysql_cquery ($query) or die ('Erreur SQL !'.$query.' '. mysql_error());
if ($val = mysql_fetch_array($result))
{//s'il y a une armure, on l'affiche
$evolution = $val['evolution'];
$reqratio= ($val['matiere']=="Or") ? REQUI_OR : (($val['matiere']=="Argent") ? REQUI_ARGENT : REQUI_BRONZE);
if ($val['type_evo']<>"")
{
$reqratio= ($val['type_evo']=="Finale") ? REQUI_OR : REQUI_ARGENT;
}
$select=true; //variable pour savoir si l'armure peut etre choisie
//on test tout les prerequis et si c'est pas bon on met select a faux
$nom= str_replace( " " , "" , $val['nom']);
?>
Warning: Undefined variable $val in /public_html/cdc/_vuearmure.php on line 37
Warning: Trying to access array offset on value of type null in /public_html/cdc/_vuearmure.php on line 37
>Armure Warning: Undefined variable $val in /public_html/cdc/_vuearmure.php on line 37
Warning: Trying to access array offset on value of type null in /public_html/cdc/_vuearmure.php on line 37
d' Warning: Undefined variable $val in /public_html/cdc/_vuearmure.php on line 37
Warning: Trying to access array offset on value of type null in /public_html/cdc/_vuearmure.php on line 37
Warning: Undefined variable $val in /public_html/cdc/_vuearmure.php on line 37
Warning: Trying to access array offset on value of type null in /public_html/cdc/_vuearmure.php on line 37
Warning: Undefined variable $val in /public_html/cdc/_vuearmure.php on line 37
Warning: Trying to access array offset on value of type null in /public_html/cdc/_vuearmure.php on line 37
Warning: Undefined variable $val in /public_html/cdc/_vuearmure.php on line 37
Warning: Trying to access array offset on value of type null in /public_html/cdc/_vuearmure.php on line 37
Prerequis
Bonus
0) echo '
Force
'.$val['req_fo'].'
';?>
0) echo '
Agilité
'.$val['req_ag'].'
';?>
0) echo '
Endurance
'.$val['req_en'].'
';?>
0) echo '
Cosmos
'.$val['req_co'].'
';?>
0) echo '
Intuition
'.$val['req_it'].'
';?>
0) echo '
Résistance
'.$val['req_re'].'
';?>
Gloire
'.$val['req_gloire'].'
';?>
Ratio
'.($reqratio*100).'%
';?>
Force
Agilité
Endurance
Cosmos
Intuition
Résistance
Attaque supplementaire
Nom
Base Degats
CO Mini
Cout CO
Critique
Precision
mysql_data_seek($result, 0);
While ($val= mysql_fetch_array($result))
{?>
Warning: Undefined variable $val in /public_html/cdc/_vuearmure.php on line 100
Warning: Trying to access array offset on value of type null in /public_html/cdc/_vuearmure.php on line 100
Warning: Undefined variable $val in /public_html/cdc/_vuearmure.php on line 102
Warning: Trying to access array offset on value of type null in /public_html/cdc/_vuearmure.php on line 102
Warning: Undefined variable $val in /public_html/cdc/_vuearmure.php on line 103
Warning: Trying to access array offset on value of type null in /public_html/cdc/_vuearmure.php on line 103
Warning: Undefined variable $val in /public_html/cdc/_vuearmure.php on line 104
Warning: Trying to access array offset on value of type null in /public_html/cdc/_vuearmure.php on line 104
Warning: Undefined variable $val in /public_html/cdc/_vuearmure.php on line 105
Warning: Trying to access array offset on value of type null in /public_html/cdc/_vuearmure.php on line 105
}
else
{
echo "il n'y a pas d'armure avec cet identifiant";
}
if (isset($_GET['param1']))
{
include("./include/barreopti.php");
mysql_close();
} ?>
}?>